<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sửa thông tin người dùng</title>
</head>

<body>
<?PHP
	require ('models/m_nguoidung.php');
	
	$post = getbyid_nguoidung($_GET['id']);
	$idquyen = getbyid_nhomnguoidung($post['ID_Nhom_nguoi_dung']);
	$nnd = getbyid_nhomnguoidung($_GET['id']);
	$nhomnguoidung = getbyall_nhomnguoidung();
	$tts=getbyall_t();	
	$quanhuyen = getbyid_quanhuyen($post['ID_Quan_huyen']);
	if (isset($_POST['ok']) )
			{ 
				  update_nguoidung($_POST); 
				  header('Location: suanguoidung.php?id='.$_GET['id']);
				
			}
	require ('v_nguoidung_sua.php'); 
	
?>
</body>
</html>